package com.tduck.cloud.form.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tduck.cloud.common.entity.BaseEntity;
import lombok.Data;

/**
 * 评价关系
 *
 * @author Guard Baby
 * @date 2023/04/20
 */
@Data
@TableName("relationship")
public class RelationshipEntity extends BaseEntity<RelationshipEntity> {
    @TableId
    @ExcelIgnore
    private Long id;
    /**
     * 被评估者
     */
    @ExcelIgnore
    private Long evaluated;
    /**
     * 被评估者名字
     */
    @TableField(exist = false)
    @ExcelProperty("被评者")
    private String evaluatedName;
    /**
     * 评估者id
     */
    @ExcelIgnore
    private Long evaluator;

    /**
     * 评估者名字
     */
    @TableField(exist = false)
    @ExcelProperty("评价者")
    private String evaluatorName;
    /**
     * 问卷标识
     */
    @ExcelIgnore
    private String formKey;

    /**
     * 关联类型
     */
    @ExcelIgnore
    private Integer type;

    @ExcelProperty("评价人部门")
    @TableField(exist = false)
    private String evaluatorOrgName;

    @ExcelIgnore
    private Long userRelationId;

    @ExcelProperty("评价人与被评人关系")
    @TableField(exist = false)
    private String userRelationName;

}
